package com.glsc.ngateway.common.base.domain.mysql.gateway.system;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Data
@Table(name = "t_gw_system_vendor_contract_relation")
@org.hibernate.annotations.Table(appliesTo = "t_gw_system_vendor_contract_relation",comment = "项目供应商关系表")
public class SystemVendorContractRelation implements Serializable {

    @ApiModelProperty(value = "主键")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", columnDefinition = "int comment '主键'")
    private Integer id;

    @ApiModelProperty(value = "供应商ID或系统id")
    @Column(name = "vendor_id", columnDefinition = "int comment '供应商ID或系统id'")
    private Integer vendorId;

    @ApiModelProperty(value = "联系人id")
    @Column(name = "contact_id", columnDefinition = "int comment '联系人ID'")
    private Integer contactId;

    @ApiModelProperty(value = "联系人类型")
    @Column(name = "contact_type", columnDefinition = "varchar(10) comment '联系人类型'")
    private String contactType;
}
